home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 0022-3.564 / dmg-3451 / data / reset1.dat < prev    next >
Text File  |  1987-04-21  |  2KB  |  38 lines

  1.  
  2. My god!! he's back at last, now after 6-8 weeks of not doing any 
  3. articles for the ne new issue of BITS, Eddie of the Happening 
  4. Boiz is back, this time its only a short piece, this article is 
  5. going to introduce the use of RESET routines in STOS programs, 
  6. everybody knows that almost all demos have reset demos, so when 
  7. you try a quit from the main demo, you get another screen, which 
  8. you can't get out of, the routine in this article is only very 
  9. simple, it just displays a screen!!, boring I know but 
  10. music,moving sprites comes later, much later!, now onto the STOS 
  11. source.....
  12.  
  13. Lines 70 - 210 these just set up the screen, get the palette of 
  14. screen 15, reserve 32 bytes for the palette, then the palette of 
  15. screen 15 is pushed into the 16 words in bank 2 using the DOKE, 
  16. and DEEK commands.
  17.  
  18. Line 250 - AREG(0) is set to point at start(15) - this is the 
  19. address of the picture data we want to display when the reset 
  20. button is pressed.
  21.  
  22. Line 260 - AREG(1) is set to point at the palette data in bank 2, 
  23. eg AREG(1)=start(2), simple eh??
  24.  
  25. Line 270 - CALL 1 , this is the machine code program that I 
  26. wrote, this initialises the reset routine, stores the position 
  27. of the picture data, and palette data, and returns.
  28.  
  29. Now when you press the button, you will get you picture on the 
  30. screen!!!, remember, if you erase bank 15 or 2, AFTER the routine 
  31. has been called, then when activated the computer MAY crash, also 
  32. sometimes when you press reset the planes of the picture are 
  33. shifted across, so the colours are all messed up,this can be 
  34. cured by pressing it again!
  35.  
  36. Well that's it for this article..............Eddie 21 Oct '91
  37.  
  38.